const toKen = 'token'
//存
const settoKen =(obj)=>{
    localStorage.setItem(toKen,JSON.stringify(obj))
}
//取
const gettoKen =()=>{
    return JSON.parse(localStorage.getItem(toKen))
}
//删
const removetoKen =()=>{
    localStorage.removeItem(toKen)
}
export {settoKen,gettoKen,removetoKen}